<template>
  <div class="header">
    <div class="header_address">
      <span class="iconfont address_icon">&#xe60b;</span>
      青大一路21号院
      <router-link to="/login"
                   tag="span">
        <span class="iconfont address_notice">&#xe61d;</span>
      </router-link>
    </div>
    <div>
      <input type="text"
             placeholder="&#xe693;大额神券"
             class="header_input iconfont">
    </div>
    <div class="header_hot">
      <span class="hot_item">进口折扣</span>
      <span class="hot_item">酸奶</span>
      <span class="hot_item">牛奶</span>
      <span class="hot_item">鸡蛋</span>
      <span class="hot_item">豆腐</span>
      <span class="hot_item">面包</span>
      <span class="hot_item">面粉</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'homeHeader',
  setup () {

  },
}
</script>

<style lang="scss" scoped>
@import "../../../style/viriables.scss";
.header {
  width: 100%;
  height: 1.35rem;
  .header_address {
    position: relative;
    padding: 0.16rem 0.24rem 0.1rem 0rem;
    font-size: 0.16rem;
    height: 0.22rem;
    line-height: 0.22rem;
    //  文本过长处理
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    .address_icon {
      font-size: 0.2rem;
      margin-right: 0.03rem;
    }
    .address_notice {
      font-size: 0.2rem;
      position: absolute;
      right: 0;
      top: 0。16rem;
    }
    color: $content-fontcolor;
  }
  .header_input {
    width: 98%;
    height: 0.3rem;
    border-radius: 0.4rem;
    text-indent: 0.1rem;
  }
  .header_hot {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 0.2rem;
    padding: 0.1rem 0;
    font-size: 0.1rem;
    color: $content-fontcolor;
    .hot_item {
      border: 0.01rem #808080 solid;
      border-radius: 0.05rem;
      text-align: center;
      line-height: 0.2rem;
    }
  }
}
</style>